home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / pcbevn25.zip / EVENT2.BAT < prev    next >
DOS Batch File  |  1992-06-24  |  1KB  |  29 lines

  1. REM    ********      Example Node 1 Event          ********
  2. REM    ********        Network Example             ********
  3.  
  4.  
  5. pcbevent /start:1                ; Stamp node 1 caller log - event started
  6.  
  7. pcbevent /waitdownws:1:2:500     ; Wait for node 2 to drop to the event
  8.                                  ; but abort after waiting for 500 seconds
  9.  
  10. if errorlevel == 10 goto end     ; Check if node 2 droped to the event
  11.                                  ; within the 500 seconds.  IF not
  12.                                  ; goto the end of the event.
  13.  
  14. REM     =======================>   Your Event goes here.
  15.  
  16.  
  17. :end
  18.  
  19. pcbevent /waitupws:1:2:500       ; Wait for node 2 to finish the event
  20.                                  ; but abort after waiting for 500 seconds
  21.  
  22. pcbevent /End:1                  ; Stamp node 1 caller log that event ended
  23.  
  24. cd\pcb                           ; CD back to the node 1 dir
  25.  
  26. REM ******* NOTE If this batch file is "CALL"ed from the event.bat
  27. REM *******      then this batch file will end and the event.bat will re-load
  28. REM *******      your board.
  29.